﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StatusPerson.aspx.cs" Inherits="Workflow.StatusPerson" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <link type="text/css" rel="stylesheet" href="css/pagination.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    
    <script type="text/javascript" src="Scripts/MyJquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.pagination.js"></script>
    <script type="text/javascript" src="Scripts/Pageination.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table table-bordered definewidth m10"><%-- --%>
            <thead>
                <tr>
                <th></th>
                <th>审核人</th>
                <th>状态</th>
                </tr>
            </thead>
            <tbody id="Searchresult"></tbody>
            <tbody id="hiddenresult" style="display:none">
                <% for (int i = 0; i < resultList.Count; i++) {%>
                <tr class="result">
                    <td><% =resultList[i].NodeName %></td>
                    <td><% =resultList[i].DisplayName %></td>
                    <td><label id="td<%=i %>"><% =resultList[i].StatusNo %></label></td>
                </tr>
                <% }%>
            </tbody>
         </table>
        <div id="Pagination" class="pagination definewidth m10"></div>
    </div>
    </form>
     <script type="text/javascript" src="Scripts/MyJquery.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var count = "<% =resultList.Count%>";
            if (count >= 10) {
                $("#Pagination").show();
            } else {
                $("#Pagination").hide();
            }
            for (var i = 0; i < count; i++) {
                if ($("#td"+i).text("1")) {
                    $("#td" + i).text("待审核");
                } else if ($("#td" + i).text("100")) {
                    $("#td" + i).text("已通过");
                } else {
                    $("#td" + i).text("暂停");
                }
            }
        });

    </script>
</body>
</html>
